onShow=async function() {
    let that = this;
    let wxGetSetting = utilApp.promisify(wx.getSetting);
    let isUserInfo = await wxGetSetting()
    if (isUserInfo.authSetting['scope.userInfo']) {
      // 判断是否有储存信息
      if (wx.getStorageSync('lotteryLoginMsg')) {
        let lotteryLoginMsg = wx.getStorageSync('lotteryLoginMsg');
        getUserInfo(lotteryLoginMsg.openid).then((res) => {
          that.setData({
            luckNum: 3 - res.data.userinfo.today_play_count
          })
        })
      } else {
        setLoginMsg().then((res) => {
          getUserInfo(res.openid).then((data) => {
            that.setData({
              luckNum: 3 - data.data.userinfo.today_play_count
            })
          })
        })
      }
    } else {
      utilApp.isGetUserInfo('../../../authorization/authorization', '../activity/turntable/index/index')
    }
  }
